public class Engine {
    double displacement;//排量
    double weight;//重量
    String brand;//品牌
    int horsepower;//马力
    public void show(){
        System.out.println("这个发动机排量有"+displacement+"t"+",重"+weight+"kg"+",品牌是"+brand+"," +
                "马力为"+horsepower+"匹");
    }

}
